<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/jquery-1.10.1.min.js"></script>
    <style>
        .active{
            color:#0f0;
            font-size: 20px;
            width:100px;
            height:100px;
            position: absolute;
            top:50px;
            left:100px;
        }
        .two{
            transition: all 1s;
        }
        .list{
            position: relative;
            border:1px solid orange;
        }
    </style>
</head>
<body>
    <h3 id="title"  demo="wh2107-daydayup" class="one demo" >jQuery 学习 </h3>
    
    <ul class="list">
        <li class="one first">item_01</li>
        <li class="two">item_02</li>
        <li class="three">
            item_03 
            <a class="nav1">hello - 2107</a>
            <a class="nav2">hello - 2109</a>
            <a class="nav3">hello - 2111</a>
            <a class="nav4">hello - 2113</a>

        </li>
        <button class="btn active">点击触发</button>
        <li>item_04</li>
        <li>item_05</li>
        <li>item_06</li>
        <li>item_07</li>
        <li>item_08 <span> hello </span></li>
        <li>item_09</li>
        <li class="last">item_10</li>
    </ul>
    <input type="text" class="inp">

    <script>

       console.log($(".active").offset())
       console.log($(".active").offset().left,$(".active").offset().top)

        console.log($(".active").position())

        console.log($(".active").prop('offsetLeft'))
        console.log($(".active").prop('offsetTop'))

        // $(".active").prop('offsetLeft','200px')
        $(".active").offset({left:200,top:200})
    </script>
</body>
</html>